package com.itheima;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.data.redis.core.RedisTemplate;




@SpringBootApplication
@MapperScan(basePackages = "com.itheima.mapper")
public class ProvideMain {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ProvideMain.class, args);
        RedisTemplate bean = run.getBean("redisTemplate",RedisTemplate.class);
        System.out.println(bean.getKeySerializer()+"====="+bean.getValueSerializer());
        System.out.println("生产者启动.....");
    }
}
